# 给定一个列表, 将指定下标处的值, 插入到指定位置
# 比如: [2,4,3,5,6], 将下标3的值(5),插入到下标1
# 新列表为[2,5,4,3,6]


def insert_num(ll, num1, num2):
    n = ll[num1]
    if num1 > num2:
        for ii in range(num1, num2, -1):
            # print(i, i - 1)
            ll[ii] = ll[ii - 1]
            # print(ll)
        ll[num2] = n


if __name__ == '__main__':
    l = [2, 5, 6, 4,3]
    insert_num(l, 3, 1)
    print(l)
